PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

RegisterIconRefFromIconFile

Adds a file-derived IconRef to the Icon Services registry.

pascal OSErr RegisterIconRefFromIconFile (
                     OSType creator,
                     OSType iconType,
                     const FSSpec*iconFamily,
                     IconRef*theIconRef);

creator
A value of type OSType specifying the creator code of the icon data you wish to register. You can use your application's creator code, for example.

Note

Lower-case creator codes are reserved for the system.

iconType
A value of type OSType specifying the type code of the icon data you wish to register.

iconFamily
A pointer to a file system specification (FSSpec ) structure. This structure specifies the file to use as the icon data source.

iconRef
A pointer to a value of type IconRef . On return, this value contains a reference to the specified icon data.

function result
A result code. See Icon Services Result Codes for a description of possible return values.

© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)